package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品管理对象 tb_products
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class Products extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品唯一标识 */
    private Long productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String productType;

    /** 生产过程描述 */
    @Excel(name = "生产过程描述")
    private String productionProcess;

    /** 所需物料ID，外键关联物料表 */
    @Excel(name = "所需物料ID，外键关联物料表")
    private Long requiredMaterialId;

    /** 所需设备ID，外键关联设备表 */
    @Excel(name = "所需设备ID，外键关联设备表")
    private Long requiredEquipmentId;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setProductionProcess(String productionProcess) 
    {
        this.productionProcess = productionProcess;
    }

    public String getProductionProcess() 
    {
        return productionProcess;
    }
    public void setRequiredMaterialId(Long requiredMaterialId) 
    {
        this.requiredMaterialId = requiredMaterialId;
    }

    public Long getRequiredMaterialId() 
    {
        return requiredMaterialId;
    }
    public void setRequiredEquipmentId(Long requiredEquipmentId) 
    {
        this.requiredEquipmentId = requiredEquipmentId;
    }

    public Long getRequiredEquipmentId() 
    {
        return requiredEquipmentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productType", getProductType())
            .append("productionProcess", getProductionProcess())
            .append("requiredMaterialId", getRequiredMaterialId())
            .append("requiredEquipmentId", getRequiredEquipmentId())
            .toString();
    }
}
